<?php
include("../service/imageService.php");
include_once "../service/serviceService.php";

$img = $_FILES['img'];
$name = $_POST["nextId"];
$serviceId = $_GET["serviceId"];

if(uploadImageServive($img, $name, $serviceId) != ""){
        editService($serviceId, $_POST["titleVn"], $_POST["titleEn"], $_POST["contentVn"], $_POST["contentEn"]);
	Header("Location: ../admin/service-detail.php?id=".$serviceId."&msg=upok");
} else {
	Header("Location: ../admin/service-detail.php?id=".$serviceId."&msg=upno");
}

?>